package com.vogue.sms.modules.monitor.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.vogue.sms.common.utils.PageUtils;
import com.vogue.sms.common.utils.Query;

import com.vogue.sms.modules.monitor.dao.RecordDataDao;
import com.vogue.sms.modules.monitor.entity.RecordDataEntity;
import com.vogue.sms.modules.monitor.service.RecordDataService;


@Service("recordDataService")
public class RecordDataServiceImpl extends ServiceImpl<RecordDataDao, RecordDataEntity> implements RecordDataService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<RecordDataEntity> page = this.selectPage(
                new Query<RecordDataEntity>(params).getPage(),
                new EntityWrapper<RecordDataEntity>()
        );

        return new PageUtils(page);
    }

}
